<template>
  <div class="vip-container">
    <home-header />
    <div class="vip-content">
      <div class="vip-card">
        <h2 class="vip-title">会员充值</h2>
        <div class="vip-benefits">
          <h3>会员权益</h3>
          <div class="vip-benefits-grid">
            <div class="vip-benefit-card">
              <div class="vip-benefit-icon">🎵</div>
              <div class="vip-benefit-title">无限编辑</div>
              <div class="vip-benefit-desc">无限曲谱编辑与保存</div>
            </div>
            <div class="vip-benefit-card">
              <div class="vip-benefit-icon">📥</div>
              <div class="vip-benefit-title">高速下载</div>
              <div class="vip-benefit-desc">支持多格式高速导出</div>
            </div>
            <div class="vip-benefit-card">
              <div class="vip-benefit-icon">🌟</div>
              <div class="vip-benefit-title">专业功能</div>
              <div class="vip-benefit-desc">优先体验新功能</div>
            </div>
            <div class="vip-benefit-card">
              <div class="vip-benefit-icon">🛡️</div>
              <div class="vip-benefit-title">云端备份</div>
              <div class="vip-benefit-desc">数据安全不丢失</div>
            </div>
            <div class="vip-benefit-card">
              <div class="vip-benefit-icon">💬</div>
              <div class="vip-benefit-title">专属客服</div>
              <div class="vip-benefit-desc">一对一专属服务</div>
            </div>
          </div>
        </div>
        <div class="vip-pay-section">
          <h3>选择充值套餐</h3>
          <div class="vip-pay-options">
            <div class="vip-pay-option vip-new-user" :class="{selected: selected === 0}" @click="selected = 0">
              <div class="vip-pay-label">新人月卡</div>
              <div class="vip-pay-price">￥10 <span class="vip-pay-small">首月</span></div>
              <div class="vip-pay-desc">新用户专享，限购一次</div>
              <span class="vip-new-badge">NEW</span>
            </div>
            <div class="vip-pay-option" :class="{selected: selected === 1}" @click="selected = 1">
              <div class="vip-pay-label">月卡</div>
              <div class="vip-pay-price">￥18</div>
              <div class="vip-pay-desc">适合短期体验</div>
            </div>
            <div class="vip-pay-option" :class="{selected: selected === 2}" @click="selected = 2">
              <div class="vip-pay-label">季卡</div>
              <div class="vip-pay-price">￥48</div>
              <div class="vip-pay-desc">性价比之选</div>
            </div>
            <div class="vip-pay-option" :class="{selected: selected === 3}" @click="selected = 3">
              <div class="vip-pay-label">年卡</div>
              <div class="vip-pay-price">￥168</div>
              <div class="vip-pay-desc">超值全年畅享</div>
              <span class="vip-hot">热销</span>
            </div>
          </div>
          <div class="vip-pay-methods">
            <span class="pay-method-title">支持：</span>
            <i class="el-icon-wallet"></i>
            <i class="el-icon-bank-card"></i>
            <i class="el-icon-mobile-phone"></i>
            <span class="pay-method-text">微信/支付宝/银行卡</span>
          </div>
          <el-button type="primary" class="vip-pay-btn" @click="pay">
            <i class="el-icon-s-check"></i> 立即支付
          </el-button>
        </div>
        <div v-if="showSuccess" class="vip-success">
          <i class="el-icon-success vip-success-icon"></i>
          <div class="vip-success-text">支付成功，会员已开通！</div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import HomeHeader from '@/components/HomeHeader.vue'
export default {
  name: 'VipView',
  components: { HomeHeader },
  data() {
    return {
      selected: 0,
      showSuccess: false
    }
  },
  methods: {
    pay() {
      this.showSuccess = true
      setTimeout(() => {
        this.showSuccess = false
      }, 2000)
    }
  }
}
</script>

<style scoped>
.vip-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #f7f8fa 0%, #eef2f7 100%);
}
.vip-content {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 110px;
  min-height: 80vh;
}
.vip-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  padding: 40px 36px 32px 36px;
  width: 1000px;
  max-width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.vip-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 28px;
  letter-spacing: 1px;
}
.vip-benefits {
  width: 100%;
  margin-bottom: 32px;
}
.vip-benefits h3 {
  font-size: 1.1rem;
  color: #409eff;
  margin-bottom: 10px;
}
.vip-benefits-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-top: 16px;
  margin-bottom: 6px;
}
.vip-benefit-card {
  background: linear-gradient(135deg, #ecf5ff 60%, #f7f8fa 100%);
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(64,158,255,0.06);
  width: 80px;
  min-height: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 2px 6px 2px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.vip-benefit-card:hover {
  box-shadow: 0 6px 24px rgba(64,158,255,0.18);
  transform: translateY(-4px) scale(1.04);
}
.vip-benefit-icon {
  font-size: 1.1rem;
  margin-bottom: 2px;
}
.vip-benefit-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #409eff;
  margin-bottom: 2px;
}
.vip-benefit-desc {
  font-size: 0.7rem;
  color: #666;
  text-align: center;
  line-height: 1.2;
}
.vip-pay-section {
  width: 100%;
  margin-bottom: 32px;
}
.vip-pay-section h3 {
  font-size: 1.1rem;
  color: #409eff;
  margin-bottom: 10px;
}
.vip-pay-options {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
}
.vip-pay-option {
  flex: 1;
  background: linear-gradient(135deg, #f7f8fa 60%, #e3eaf2 100%);
  border-radius: 14px;
  padding: 32px 0 18px 0;
  text-align: center;
  cursor: pointer;
  border: 3px solid #f5f7fa;
  box-shadow: 0 2px 12px rgba(64,158,255,0.06);
  transition: border 0.2s, box-shadow 0.2s, transform 0.2s;
  position: relative;
}
.vip-pay-option.selected {
  border: 3px solid #409eff;
  box-shadow: 0 4px 18px rgba(64,158,255,0.13);
  background: linear-gradient(135deg, #ecf5ff 60%, #d6eaff 100%);
  transform: scale(1.04);
}
.vip-pay-label {
  font-size: 1.2rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 10px;
}
.vip-pay-price {
  font-size: 2rem;
  color: #409eff;
  font-weight: 800;
  margin-bottom: 8px;
}
.vip-pay-desc {
  font-size: 0.95rem;
  color: #888;
  margin-bottom: 0;
}
.vip-hot {
  position: absolute;
  top: 12px;
  right: 18px;
  background: #ff9800;
  color: #fff;
  font-size: 0.8rem;
  padding: 2px 10px;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 1px;
}
.vip-pay-methods {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 1rem;
  color: #888;
  justify-content: center;
}
.pay-method-title {
  color: #222;
  font-weight: 600;
}
.pay-method-text {
  color: #888;
  font-size: 0.95rem;
}
.vip-pay-btn {
  width: 100%;
  height: 48px;
  font-size: 18px;
  border-radius: 10px;
  font-weight: 700;
  background: linear-gradient(90deg, #409eff 60%, #67c23a 100%);
  border: none;
  box-shadow: 0 2px 8px rgba(64,158,255,0.13);
}
.vip-pay-btn i {
  margin-right: 8px;
  font-size: 20px;
}
.vip-success {
  margin-top: 24px;
  text-align: center;
  color: #67c23a;
  font-size: 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.vip-success-icon {
  font-size: 32px;
  margin-bottom: 8px;
}
.vip-pay-notice {
  background: #f8fafc;
  border-radius: 8px;
  color: #888;
  font-size: 0.98rem;
  padding: 12px 18px;
  margin-bottom: 16px;
  margin-top: 8px;
  line-height: 1.7;
}
.vip-pay-agreement {
  color: #aaa;
  font-size: 0.92rem;
  margin-top: 10px;
  text-align: center;
}
.vip-link {
  color: #409eff;
  text-decoration: underline;
  margin-left: 2px;
}
.vip-pay-help {
  color: #888;
  font-size: 0.98rem;
  margin-top: 14px;
  text-align: center;
}
.vip-kefu {
  color: #409eff;
  font-weight: 600;
  margin-left: 2px;
}
@media (max-width: 700px) {
  .vip-card {
    width: 98vw;
    padding: 18px 2vw 18px 2vw;
  }
  .vip-title {
    font-size: 1.1rem;
    margin-bottom: 18px;
  }
}
@media (max-width: 900px) {
  .vip-benefit-card {
    width: 120px;
    min-height: 120px;
    padding: 16px 2px 10px 2px;
  }
}
@media (max-width: 600px) {
  .vip-benefits-grid {
    gap: 10px;
  }
  .vip-benefit-card {
    width: 90px;
    min-height: 90px;
    padding: 10px 2px 6px 2px;
  }
  .vip-benefit-icon {
    font-size: 1.3rem;
    margin-bottom: 4px;
  }
  .vip-benefit-title {
    font-size: 0.92rem;
  }
  .vip-benefit-desc {
    font-size: 0.82rem;
  }
}
.vip-new-user {
  border: 3px solid #67c23a !important;
  background: linear-gradient(135deg, #eafff0 60%, #f7f8fa 100%) !important;
  position: relative;
}
.vip-new-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #67c23a;
  color: #fff;
  font-size: 0.8rem;
  padding: 2px 10px;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 1px;
}
.vip-pay-small {
  font-size: 1rem;
  color: #888;
  margin-left: 2px;
}
</style> 